package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.BTxnLimitCfg;
import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 刘玉亮.LL
 */
public interface BTxnLimitCfgService extends IService<BTxnLimitCfg> {

    //导出
    IPage<BTxnLimitCfg> findBTxnLimitCfgExcel(QueryRequest request, BTxnLimitCfg bTxnLimitCfg);

    BTxnLimitCfg findByUniqueIndex(String instId, String limitType, String limitInst, String limitAcctType);

    IPage<BTxnLimitCfg> findByPage(QueryRequest request, BTxnLimitCfg info);

    List<BTxnLimitCfg> findByPDstChannelInfo(String instId, String limitType, String limitInst);

    OperationResult saveData(BTxnLimitCfg entity, HttpServletRequest request) throws RedpException;

    OperationResult getMchntLevel(String instId, String mchntNo);
}
